<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./css/main.css" type="text/css">
    <script>
    function copyLink() {
        var copyText = document.getElementById("url");
        copyText.select();
        document.execCommand("copy");
        alert("Copied the text: " + copyText.value);
        }
    </script>
    <title>Paste Link</title>
</head>
<body>
    <div class="container">
    <button class="submit" onclick="copyLink()">Copy this link</button>
    <a href="./raw/{{.id}}">
    <button class="submit">Raw Data</button>
    </a>
    <textarea>{{.content}}</textarea>
    <input class="center" type="text" id="url" value="{{.domain}}{{.id}}">
    <br/>
    </div>
</body>
</html>